
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="__STATIC__/component/pear/css/pear.css" />
    <link id="layuicss-layer" rel="stylesheet" href="__STATIC__/component/layui/css/modules/layer/default/layer.css" media="all">
</head>
<body class="pear-container">
<div class="layui-row layui-col-space15">
    <div class="layui-col-md12">
        <div class="layui-card">
        <div class="layui-tab layui-tab-brief" lay-filter="TabBrief">
            <ul class="layui-tab-title">
                <li lay-id="web">网站设置</li>
                <li lay-id="email">邮箱设置</li>
                <li lay-id="file">上传设置</li>
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <form class="layui-form edit-form" action="" lay-filter="component-form-element">
                        <div class="layui-form-item">
                            <label class="layui-form-label">存储方式</label>
                            <div class="layui-input-block">
                              <input type="radio" name="file-type" value="1" title="本地" {if condition="$data['file-type'] eq 1"} checked {/if} lay-filter="type">
                              <input type="radio" name="file-type" value="2" title="阿里云" {if condition="$data['file-type'] eq 2"} checked {/if} lay-filter="type">
                            </div>
                        </div>
                        <div class="layui-form-item" id="oss" {if condition="$data['file-type'] neq 2"} style="display: none;" {/if}>
                            <div class="layui-form-item">
                                <label class="layui-form-label">Oss地址</label>
                                <div class="layui-input-block">
                                    <input type="text" name="file-endpoint"  value="{$data['file-endpoint']??''}"  placeholder="请输入Oss地址" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">空间名称</label>
                                <div class="layui-input-block">
                                    <input type="text" name="file-OssName"   value="{$data['file-OssName']??''}" placeholder="请输入空间名称" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">KeyId</label>
                                <div class="layui-input-block">
                                    <input type="text" name="file-accessKeyId"   value="{$data['file-accessKeyId']??''}" placeholder="请输入KeyId" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">KeySecret</label>
                                <div class="layui-input-block">
                                    <input type="text" name="file-accessKeySecret"   value="{$data['file-accessKeySecret']??''}"  placeholder="请输入KeySecret" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <button type="submit" class="pear-btn pear-btn-primary" lay-submit="" lay-filter="configform">保存设置</button>
                            </div>
                        </div>
                     </form>
                </div>
                </div>
                </div>
            </div>      
        </div>
    </div>
</div>
<script src="__STATIC__/component/layui/layui.all.js"></script>
<script src="__STATIC__/component/pear/pear.js"></script>
<script src="__STATIC__/admin/js/site_config/index.js"></script>
</body>
</html>
